package com.guonl.feign.annotation;

import java.lang.annotation.*;

/**
 * 重试注解，作用在 @FeignClient 注解之上
 */
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface FeignRetry {

	String feignName() default "";

	Backoff backoff() default @Backoff();

	int maxAttempt() default 3;

	Class<? extends Throwable>[] include() default {};

}
